home *** CD-ROM | disk | FTP | other *** search
- /*********************************************************************
- Project : MacPerl - Real Perl Application
- File : MPFile.h -
- Author : Matthias Neeracher
-
- A lot of this code is borrowed from 7Edit written by
- Apple Developer Support UK
-
- Language : MPW C
-
- $Log: MPFile.h,v $
- Revision 1.1 1994/02/27 23:03:17 neeri
- Initial revision
-
- Revision 0.3 1993/08/29 00:00:00 neeri
- GetDocType
-
- Revision 0.2 1993/08/13 00:00:00 neeri
- ApplySettings
-
- Revision 0.1 1993/05/29 00:00:00 neeri
- Compiles correctly
-
- *********************************************************************/
-
- #ifndef __MPFILE__
- #define __MPFILE__
-
- #include <Memory.h>
- #include <QuickDraw.h>
- #include <Traps.h>
- #include <Files.h>
- #include <Packages.h>
- #include <Editions.h>
- #include <AppleEvents.h>
- #include <Printing.h>
-
- #include "MPGlobals.h"
- #include "MPUtils.h"
- #include "MPWindow.h"
- #include "MPEditions.h"
-
- pascal void DoQuit(DescType saveOpt);
-
- pascal OSErr DoClose(WindowPtr aWindow, Boolean canInteract, DescType dialogAnswer);
-
- pascal OSErr GetFileNameToSaveAs(DPtr theDocument);
-
- pascal OSErr GetFileContents(FSSpec theFSSpec, DPtr theDocument);
-
- pascal void FileError(Str255 s, Str255 f);
-
- pascal OSErr SaveAskingName(DPtr theDocument, Boolean canInteract);
-
- pascal OSErr SaveUsingTemp(DPtr theDocument);
-
- pascal OSErr DoCreate(FSSpec theSpec);
-
- pascal OSErr OpenOld(FSSpec aFSSpec, DocType type);
-
- pascal OSErr GetFile(FSSpec *theFSSpec);
-
- pascal void ApplySettings(DPtr doc, HPtr settings);
-
- pascal OSErr SaveConsole(DPtr doc);
-
- pascal void RestoreConsole(DPtr doc);
-
- pascal DocType GetDocType(FSSpec * spec);
-
- #endif